package member.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import member.to.ActionForward;

public class GetLoginMemberInfoController implements Controller {
	
	@Override
	public ActionForward handle(HttpServletRequest request,
			HttpServletResponse response) {
		ActionForward af = null;
		HttpSession session = request.getSession();
		Object obj = session.getAttribute("login_info");
		if(obj==null){
			request.setAttribute("error_message", "로그인 후 회원정보 조회하십시요");
			af = new ActionForward("/login_form.jsp", false);
		}else{
			af = new ActionForward("/member_detail.jsp", false);
		}
		return af;
	}

}
